package com.hospital.ssm.service.serviceimpl;

import com.hospital.ssm.mapper.HospitalInformationMapper;
import com.hospital.ssm.model.HospitalInformation;
import com.hospital.ssm.service.HospitalInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HospitalInformationServiceImpl implements HospitalInformationService {

    @Autowired
    private HospitalInformationMapper hospitalInformationMapper;

    @Override
    public List<HospitalInformation> HospitalInformationList(Integer id) throws Exception {
        return hospitalInformationMapper.HospitalInformationList(id);
    }

    @Override
    public int HospitalInformationAdd(HospitalInformation hospitalInformation) throws Exception {
        return hospitalInformationMapper.HospitalInformationAdd(hospitalInformation);
    }

    @Override
    public int HospitalInformationDelete(Integer id) throws Exception {
        return hospitalInformationMapper.HospitalInformationDelete(id);
    }

    @Override
    public int HospitalInformationUpdate(HospitalInformation hospitalInformation) throws Exception {
        return hospitalInformationMapper.HospitalInformationUpdate(hospitalInformation);
    }

    @Override
    public int HospitalInformationUpdatehtStatus(HospitalInformation hospitalInformation) throws Exception {
        return hospitalInformationMapper.HospitalInformationUpdatehtStatus(hospitalInformation);
    }
}
